package com.example.demo.controller.bfzx;

import com.example.demo.common.MessageBody;
import com.example.demo.service.BfszService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created realshare
 * author:fh
 * Date:2019/4/22
 * Time:15:32
 * desc:备份设置控制器
 **/
@CrossOrigin
@RestController()
@RequestMapping("/bfsz/")
public class BfszController {

    @Autowired
    private BfszService bfszService;

    /**
     * @auther: fh
     * @date 2019/4/22 16:32
     * @des 获取备份规则设置列表
     */
    @RequestMapping("getBackupRuleList")
    public MessageBody getBackupRuleList() {
        return bfszService.getBackupRuleList();
    }
}
